package com.itheima.demo.Demo06.CS;

public class T extends Thread {
    @Override
    public void run() {
        for (int i = 0; i <=20 ; i++) {
            try {
                Thread.sleep(300);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread().getName()+" "+i);

        }
    }
}
